Siel\Acumulus\Invoice\Completor D

Total Complexity 312
Dependencies 17
Dependents 7
Total lines 2,048
Lines of code 988
Logical lines of code 612
Comment lines 835
Methods 52
Properties 17

Methods 52

Method Rating Maintainability Complexity Lines of code
getInvoiceLinesVatTypeInfo()
C
38 29 57
initPossibleVatRates()
C
35 26 82
completeVatType()
C
32 23 105
initPossibleVatTypes()
B
40 20 61
addMissingAmountLine()
B
39 15 64
guessVatType()
A
46 12 39
areTotalsEqual()
A
46 12 38
getNature()
A
49 10 31
completeLineTotals()
A
46 9 41
correctNullVatLines()
A
53 10 23
checkEuCommerceThreshold()
A
51 9 23
correctNoVatLines()
A
54 9 18
validateEmail()
A
52 8 24
correctMarginInvoice()
A
54 8 19
completeVatTypeId()
S
59 8 14
getEuSalesReport()
S
51 6 26
getVatRatesByCountryAndInvoiceDate()
S
52 6 25
shouldConvertCurrency()
S
53 5 23
changeInvoiceToConcept()
S
54 5 20
fictitiousClient()
S
58 5 14
addWarning()
S
62 4 12
processMetaData()
S
60 4 12
complete()
S
50 2 31
is0VatPossibleForVatType()
S
66 4 8
isNorthernIreland()
S
65 4 8
invoiceTemplate()
S
64 4 9
removeEmptyShipping()
S
62 3 11
addDefault()
S
68 3 7
isVatFreeInvoice()
S
66 3 8
isFreeVatRate()
S
69 3 6
is0VatRate()
S
69 3 6
convertAmount()
S
67 3 7
isEuWithSameVatRate()
S
72 3 5
metaDataHasOnlyNoVat()
S
66 3 9
isEu()
S
63 3 9
metaDataHasANoVat()
S
66 3 9
isCompany()
S
77 2 3
convertToEuro()
S
65 2 9
checkMissingAmount()
S
69 2 7
checkForKnownVatType()
S
66 2 8
isOutsideEu()
S
79 2 3
getInvoiceDate()
S
72 2 5
isNoVat()
S
79 2 3
is0VatClass()
S
66 2 8
isVatFreeClass()
S
66 2 8
__construct()
S
62 1 12
isNl()
S
79 1 3
t()
S
80 1 3
is0VatVatTypePossible()
S
78 1 3
lineHasNoVat()
S
80 1 3
isCorrectVatRate()
S
78 1 3
isUk()
S
77 1 3